package hoowin.basic.action;

import hoowin.basic.model.User;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class Home extends ActionSupport {
	private User user;
	public String execute(){
		if(user.getId()==0)return LOGIN;
		else return SUCCESS;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public User getUser() {
		return user;
	}
}
